/**
 * @(#)Hello.java
 *
 *
 * @author
 * @version 1.00 2016/11/20
 */

package com.tsinghua;

import javax.servlet.*;
import java.io.*;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

public class Hello  implements Servlet
{

  /*  public Hello()
    {
    }
*/
	/**
	 * Method init
	 *
	 *
	 * @param parm1
	 *
	 @throws ServletException
	 *
	 */
	public void init(ServletConfig parm1) throws ServletException {
		// TODO: Add your code here
		System.out.println("init it");
	}

	/**
	 * Method getServletConfig
	 *
	 *
	 * @return
	 *
	 */
	public ServletConfig getServletConfig() {
		// TODO: Add your code here
		return null;
	}

	/**
	 * Method service
	 *
	 *
	 * @param parm1
	 * @param parm2
	 *
	 @throws ServletException
	 @throws IOException
	 *
	 */
	public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
		// TODO: Add your code here
		System.out.println("service it");
		PrintWriter pw = res.getWriter();
		pw.println("hello world");
	}

	/**
	 * Method getServletInfo
	 *
	 *
	 * @return
	 *
	 */
	public String getServletInfo() {
		// TODO: Add your code here
		return "";
	}

	/**
	 * Method destroy
	 *
	 *
	 */
	public void destroy() {
		// TODO: Add your code here
		System.out.println("destroy!");
	}


}